<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Dine</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link rel="stylesheet" type="text/css" media="all" href="<?= $this->commonUrl; ?>/css/jquery-ui-1.8.11.custom.css" />
    <link rel="stylesheet" type="text/css" media="all" href="<?= $this->commonUrl; ?>/css/jRating.jquery.css" />
    <link rel="stylesheet" type="text/css" media="all" href="<?= $this->commonUrl; ?>/css/style.css" />
    <script type="text/javascript" src="<?= $this->commonUrl; ?>/js/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="<?= $this->commonUrl; ?>/js/jquery.ui.core.min.js"></script>
    <script type="text/javascript" src="<?= $this->commonUrl; ?>/js/jquery.ui.datepicker.min.js"></script>
    <script type="text/javascript" src="<?= $this->commonUrl; ?>/js/jRating.jquery.js"></script>
    <script type="text/javascript">
    var AJAX_URL = "<?= $this->commonUrl; ?>";
    </script>
</head>
<body>

    <div style="margin:0 auto; width:1280px;">
        <!--sidebar-->
        <div style="float:left; width:180px; margin:30px 15px;">
        <?php if ($this->userLogedIn) { ?>
            <a href="<?= $this->L('profile'); ?>">View My Profile</a><br />
            <!-- <a href="<?= $this->L('profile', 'photo'); ?>">My Photos</a><br />
            <a href="<?= $this->L('profile', 'edit'); ?>">Settings</a><br /><br />
            <a href="<?= $this->L('comment', 'listapproved'); ?>">3 approved</a><br />
            <a href="<?= $this->L('comment', 'listpending'); ?>">2 pending</a><br />
            <a href="<?= $this->L('comment', 'approve'); ?>">clik to approval</a><br />
            <a href="<?= $this->L('review', 'listmine'); ?>">4 Reviews</a><br />

            <a href="<?= $this->L('friend', 'list'); ?>/1">5 Favorite Members</a><br />
            <a href="<?= $this->L('friend', 'listfavorited'); ?>">4 Likes Me</a><br />
            <a href="<?= $this->L('friend', 'listfollowed'); ?>">I Follow 2</a><br />
            <a href="<?= $this->L('friend', 'listfollowers'); ?>">2 follow me</a><br />
            <a href="<?= $this->L('restaurant', 'listfavorite'); ?>">1 Favorite Restaurants</a><br /> -->
        <?php } else if (false === strpos($this->url(), '/user/')) { ?>
            <?= $this->formLogin->setAction($this->commonUrl . '/user/login'); ?>
            <a href="<?= $this->L('user', 'reset-pwd'); ?>">Forgot your password?</a>
        <?php } ?>
        </div><!--sidebar-->

        <!--main-->
        <div style="float:left; width:1000px; margin:30px;">
            <div>
                <ul class="menu">
                    <li><a href="<?= $this->L(); ?>">Home</a></li>
                    <li>
                        <?php if ($this->userLogedIn) { ?>
                            <a href="<?= $this->L('place', 'add'); ?>">Add a restaurant</a>
                        <?php } else { ?>
                            <a href="<?= $this->L('user', 'register'); ?>">Join Now</a>
                        <?php } ?>
                    </li>
                    <li>
                        <?php if ($this->userLogedIn) { ?>
                            <a href="<?= $this->L('user', 'logout'); ?>">Logout</a>
                        <?php } else { ?>
                            <a href="<?= $this->L('user', 'login'); ?>">Member Login</a>
                        <?php } ?>
                    </li>
                    <li><a href="<?= $this->L('place'); ?>">Browse</a></li>
                    <li><a href="<?= $this->L('review', 'list'); ?>">New Reviews</a></li>
                    <li><a href="<?= $this->L('review', 'list-reviewers'); ?>">Top Reviewers</a></li>
                    <li><a href="<?= $this->L('static', 'contact'); ?>">Contact Us</a></li>
                </ul>
            </div>
            <br /><br />
            <?= $this->layout()->content; ?>
        </div><!--main-->
    </div>

    <!--footer-->
    <div style="background:#fff; width:100%; height:110px; clear:both;">
        <div style="width:450px; margin:0 auto;">
            <ul class="menu">
                <li><a href="<?= $this->L('user', 'account'); ?>">Settings</a></li>
                <li><a href="<?= $this->L('static', 'about'); ?>">About Us</a></li>
                <li><a href="<?= $this->L('static', 'contact'); ?>">Contact Us</a></li>
                <li><a href="<?= $this->L('static', 'help'); ?>">Help</a></li>
                <li><a href="<?= $this->L('static', 'press'); ?>">Press</a></li>
            </ul>
        </div>
    </div><!--footer-->

</body>
</html>